package com.igeekhome.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 立以宁
 */
@Configuration
public class FileWebMvcConfigurer implements WebMvcConfigurer {

    @Value("${upload.picture.path}")
    private String filePath;

    @Value("${upload.picture.path.relative}")
    private String fileRelativePath;

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {

       /* registry.addResourceHandler("/image/**").
                addResourceLocations("file:D:/files/image/");*/
    }


}
